/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package conceitos.componentes;

import java.awt.Graphics;
import java.awt.image.BufferedImage;
import javax.swing.JPanel;

/**
 *
 * @author jeferson
 */
public class PainelBMP extends JPanel{
    private BufferedImage imagem;
    
     @Override
    protected void paintComponent(Graphics g) {
        g.drawImage(imagem, 0, 0, this);
    }
     
    public void setImagem(BufferedImage imagem){
        this.imagem = imagem;
    }
    
}
